<template>
  <view>
    <button @click="getpost">获取地址</button>
  </view>
</template>

<script>
export default {
  methods: {
    getpost() {
      wx.chooseAddress({
        success: (result) => {
          console.log(result);
        },
        fail: () => {},
        complete: () => {},
      });
    },
  },
};
</script>

<style></style>
